package com.twittex.controller
{
    import com.twittex.*;
    import com.twittex.model.*;
    import com.twittex.view.*;
    import com.twittex.view.components.ApplicationScreen;
    
    import org.puremvc.as3.interfaces.*;
    import org.puremvc.as3.patterns.command.*;
    import org.puremvc.as3.patterns.observer.*;

    public class ViewPrepCommand extends SimpleCommand
    {
        override public function execute( note:INotification ) :void    
		{
            facade.registerMediator( new TwittexMediator( note.getBody() as ApplicationScreen ) );

			sendNotification( TwittexFacade.VIEW_LOGIN_SCREEN );
        }
    }
}
